﻿#ifndef MENUCONTROLLER_H
#define MENUCONTROLLER_H

#include <httprequesthandler.h>
using namespace stefanfrings;

class MenuController : public HttpRequestHandler
{
public:
    explicit MenuController(QObject *parent = nullptr);
    ~MenuController();
    void service(HttpRequest &request, HttpResponse &response) override;
private:
    void getListBYAuth(HttpRequest &request, HttpResponse &response);
    void getList(HttpRequest &request, HttpResponse &response);
    void saveOne(HttpRequest &request, HttpResponse &response);
    void deleteOne(HttpRequest &request, HttpResponse &response);
};

#endif // MENUCONTROLLER_H
